package com.chenxi.mapper;

import com.chenxi.bean.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select(value = "select * from sys_user_role t1 , sys_role t2 where t1.roleid = t2.id AND t1.userid = #{userId}")
    public List<Role> findRoleListByUserId(int userId);
}
